$(function() {
	function bannermouseover() {
		$("#divbanner li").each(function(index) {
			$(this).bind("mouseover", function() {
				$("#divbanner li a").removeClass();
				$("#divimagebanner a").filter(":visible").hide();
				$("#divbanner li a").eq(index).addClass('on');
				$("#divimagebanner a").eq(index).show();
				window.clearInterval(index_banner.clock);
			});
			$(this).bind("mouseout", function() {
				index_banner.clock = window.setInterval("index_banner.bannerAutoShow()", 3000);
			});
		});
	}
	(function init(){
		bannermouseover();
	    index_banner.clock = window.setInterval("index_banner.bannerAutoShow()", 3000);
})();
});
//首页banner轮回。index_banner全局变量
var index_banner = index_banner || {};
index_banner.clock=null;
index_banner.s = 0;
index_banner.bannerAutoShow=function(){
	var c = $("#divbanner li").size();
	if (index_banner.s >= c) {
		index_banner.s = 0;
	}
	$("#divbanner li a").removeClass();
	$("#divimagebanner a").filter(":visible").hide();
	$("#divbanner li a").eq(index_banner.s).addClass('on');
	$("#divimagebanner a").eq(index_banner.s).show();
	index_banner.s++;
}